package com.czxy.feign;

import com.czxy.pojo.group.BaseResult;
import com.czxy.vo.SearchSku;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.http.ResponseEntity;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;

import java.util.List;

/**
 * 远程调用
 * @author Liuyunqin 17674029449@163.com
 * @date 2018/12/25 9:21
 */
@FeignClient("web-service")
@RequestMapping
public interface SkuClient {

    /**
     * 对应的接口
     * @return
     */
    @GetMapping("/esData")
    public ResponseEntity<List<SearchSku>> findESData();

}
